import React, { Component } from 'react'

export class SubCounter extends Component {
    SubCounter(conut){
        this.props.subClick(conut)
    }
  render() {
    return (
      <div>
        <button onClick={e=>this.SubCounter(-1)}>-1</button>
        <button onClick={e=>this.SubCounter(-5)}>-5</button>
        <button onClick={e=>this.SubCounter(-10)}>-10</button>
      </div>
    )
  }
}

export default SubCounter